package com.eight.feign;

import com.eight.pojo.TbUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description: 客户的费恩接口
 * @Author: Van.Planifolia
 * @CreateTime: 2023-02-27  11:07
 * @Version: 1.0
 */
@FeignClient("rentcar-customer")
public interface AccountFeign {
    /**
     * 根据客户账号密码登录的费恩接口
     * @param password 客户登录的密码
     * @param username 客户登录的用户名
     * @return 查询出来的客户信息
     */
    @GetMapping("/customer/tbClient/selectOne/{username}/{password}")
    TbUser selectOne(@PathVariable String username, @PathVariable String password);
}
